package cn.tedu.sp09.fenign;

import cn.tedu.sp01.pojo.Order;
import cn.tedu.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.ws.rs.GET;

@FeignClient(name = "order-service" , fallback = OrderFeignServiceFB.class)
public interface OrderClient {
@GetMapping("/{orderId}")
JsonResult<Order> getOrder(@PathVariable String orderId);
@GetMapping("/")
    JsonResult addOrdr();
}
